//
//  JJTBaseRequest.h
//  ClaimPlatform_RN
//
//  Created by hamilyjing on 27/03/2018.
//  Copyright © 2018 jj. All rights reserved.
//

#import "JJBaseRequest.h"

@interface JJTBaseRequest : JJBaseRequest

@property (nonatomic, strong) NSDictionary *parameters;
@property (nonatomic, assign) BOOL isEncryption;

- (instancetype)initWithIdentity:(NSString *)identity
                      parameters:(NSDictionary *)parameters
                    isEncryption:(BOOL)isEncryption
                      modelClass:(Class)modelClass
                  isSaveToMemory:(BOOL)isSaveToMemory
                    isSaveToDisk:(BOOL)isSaveToDisk;

+ (id)cacheModelWithIdentity:(NSString *)identity
                  parameters:(NSDictionary *)parameters
                isEncryption:(BOOL)isEncryption
                  modelClass:(Class)modelClass;

+ (id)cacheModelWithIdentity:(NSString *)identity
                  parameters:(NSDictionary *)parameters
                isEncryption:(BOOL)isEncryption
                  modelClass:(Class)modelClass
sensitiveDataForSavedFileName:(NSString *)sensitiveDataForSavedFileName;

- (id)getConvertModelContent:(NSDictionary *)responseDictionary;

- (void)processAbnormalStatus;

@end
